package com.huluobo.high3videoproject.startLive.presenter;

import com.huluobo.high3videoproject.bean.StartLiveBeanResult;
import com.huluobo.high3videoproject.bean.StopLiveBeanResult;

import io.reactivex.Observable;

public interface StartLiveContract {
    interface Model {
        Observable<StartLiveBeanResult> startLive(String address, String caption);

        Observable<StopLiveBeanResult> stopLive();
    }

    interface Presenter {
        void startLive(String address, String caption);

        void stopLive();
    }

    interface View {
        void onStartLiveSuccess(StartLiveBeanResult startLiveBeanResult);

        void onStartLiveFailed(String error);

        void onStopLiveSuccess(StopLiveBeanResult stopLiveBeanResult);

        void onStopLiveFailed(String error);
    }
}
